import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: 'questionType',
    align: "center",
    dataIndex: 'questionType'
  },
  {
    title: 'subjectId',
    align: "center",
    dataIndex: 'subjectId'
  },
  {
    title: 'score',
    align: "center",
    dataIndex: 'score'
  },
  {
    title: 'gradeLevel',
    align: "center",
    dataIndex: 'gradeLevel'
  },
  {
    title: 'difficult',
    align: "center",
    dataIndex: 'difficult'
  },
  {
    title: 'correct',
    align: "center",
    dataIndex: 'correct'
  },
  {
    title: 'infoTextContentId',
    align: "center",
    dataIndex: 'infoTextContentId'
  },
  {
    title: 'createUser',
    align: "center",
    dataIndex: 'createUser'
  },
  {
    title: 'status',
    align: "center",
    dataIndex: 'status'
  },
];

//查询数据
export const searchFormSchema: FormSchema[] = [
];

//表单数据
export const formSchema: FormSchema[] = [
  {
    label: 'questionType',
    field: 'questionType',
    component: 'InputNumber',
  },
  {
    label: 'subjectId',
    field: 'subjectId',
    component: 'InputNumber',
  },
  {
    label: 'score',
    field: 'score',
    component: 'InputNumber',
  },
  {
    label: 'gradeLevel',
    field: 'gradeLevel',
    component: 'InputNumber',
  },
  {
    label: 'difficult',
    field: 'difficult',
    component: 'InputNumber',
  },
  {
    label: 'correct',
    field: 'correct',
    component: 'InputTextArea',
  },
  {
    label: 'infoTextContentId',
    field: 'infoTextContentId',
    component: 'InputNumber',
  },
  {
    label: 'createUser',
    field: 'createUser',
    component: 'InputNumber',
  },
  {
    label: 'status',
    field: 'status',
    component: 'InputNumber',
  },
  {
    label: 'deleted',
    field: 'deleted',
    component: 'InputNumber',
  },
	// TODO 主键隐藏字段，目前写死为ID
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];
